/**
 * 
 */
package br.coppe.coimbra.gui;

import javax.swing.JFileChooser;
import javax.swing.JPanel;

/**
 * @author phillipe
 *
 */
public class Directory extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String dir;
	
	public Directory() {
	
		//Create a file chooser
				final JFileChooser fc = new JFileChooser(".");
				fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
				fc.showOpenDialog(fc);
			   
			    dir = fc.getSelectedFile().getPath();
	}
	
	public String getDirectory() {
//		System.out.println(this.dir);
		 return this.dir;
	}
}
